/*
 *  Ground.cpp
 *  Rempart
 *
 *
 */

#include "Ground.h"



Ground::Ground(){

	this->elementType=MapElement::ground;
	this->visible = true;
	this->resetDefaultSurface();
	
}

void Ground::setSecured(){
	this->secured = true;
	this->SetImage(*RessourcesManager::getSecureGroundSurface());
	
}

void Ground::unsetSecured(){
	this->secured = false;
	this->resetDefaultSurface();
}

void Ground::resetDefaultSurface(){
	this->SetImage(*RessourcesManager::getDefaultGroundSurface());
}


